100
|
Is is possible to toggle the selection of dates, such the first click selects the date, the second click unselects it, and so on

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
exschedule1.OnResizeControl(1281/*exCalendarFit | exHideSplitter | exResizePanelRight*/);
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.AllowToggleSelectKey(1/*exLeftClick*/);
com_Calendar.AllowSelectDate(1/*exLeftClick*/);
com_Calendar.SingleSel(false);
}
|
99
|
How can I change the background color for selected dates in the calendar panel, so always is the same no matter if the control loses the focus

public void init()
{
;
super();
exschedule1.Background(68/*exCalendarSelBackColorUnFocus*/,exschedule1.Background(19/*exCalendarSelBackColor*/));
exschedule1.Background(69/*exCalendarSelForeColorUnFocus*/,exschedule1.Background(20/*exCalendarSelForeColor*/));
}
|
98
|
Is it possible to specify a different background color for the calendar panel

public void init()
{
;
super();
exschedule1.Background(4/*exCalendarBackColor*/,WinApi::RGB2int(240,240,240));
}
|
97
|
How do I change the control's border, using your EBN files

public void init()
{
;
super();
exschedule1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
exschedule1.Appearance(16777216);
}
|
96
|
Is it possible to prevent showing the calendar at all

public void init()
{
;
super();
exschedule1.OnResizeControl(768/*exChangePanels | exHideSplitter*/);
exschedule1.ScrollBars(0/*exNoScroll*/);
}
|
95
|
How can I change the visual aspect only for a specified event

public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
;
super();
exschedule1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)));
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 10:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)))); com_Event = var_Event;
com_Event.BodyBackColor(0x1000000);
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213)));
exschedule1.DefaultEventPadding(-1/*exPaddingAll*/,2);
}
|
94
|
How can I change the visual aspect of the events

public void init()
{
;
super();
exschedule1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
exschedule1.Background(75/*exScheduleCreateEventBackColor*/,0x1000000);
exschedule1.Background(79/*exScheduleUpdateEventsBackColor*/,0x1000000);
exschedule1.BodyEventBackColor(0x1000000);
}
|
93
|
Is there any event to let me know once an edit has been edited

// LayoutEndChanging event - Notifies your application once the control's layout has been changed.
void onEvent_LayoutEndChanging(int _Operation)
{
;
print( "End exScheduleEditEvent(15)" );
print( _Operation );
}
// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void onEvent_LayoutStartChanging(int _Operation)
{
;
print( "Start exScheduleEditEvent(15)" );
print( _Operation );
}
public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
str var_s;
;
super();
exschedule1.AllowEditEvent(1/*exLeftClick*/);
exschedule1.AllowSelectEvent(0/*exDisallow*/);
exschedule1.DefaultEventLongLabel("");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
var_s = "gBFLBWIgBAEHhEJAEGg7IAUHXI6g0MAAmhULikUCIgg6sh4AgRCJ0Ui8HjKTj6AADACAxRDAMgBQKAAzQFAYZhpBaERiHEZoJhUAIIRZGMQxXAcMQvDSKQRhEAoJDgN4";
var_s = var_s + "kQKNYyQYAAYhuGaPBhASQJUhkMocR7HMygBJkUABEyYaFHdIFCQ1DykJzkCbqAgkMYeDRHQxTdQsEgpDQMIRpGA5eb+XgAV4/cTSYKQahLMizJYGUYLHgma5tTTWcTVP";
var_s = var_s + "LVFRrJiTYRlKTJOjCCQ0ATdUyzPAeCRzQ6QJ5kUZ6CgSUpGRjkhY6agkF6VVxCNg2BT8KzxRoAKhiGpKHpaCaUQLWMB5PaoAR8fLYAA2B6bDhGaa2XAAFr2VZkWSUBBp";
var_s = var_s + "nSWo8kYIg1D6NBuGyIhYnCXx5kuHZcjUAAOAcDxbF2L5mmKPIOl2Ox7l2XJVGAfRMh8CABiyYpgi8E5pFSRp4DQHBkiKOQug4ChpmqPRoiAco6HePxJDUXQAASCYpHAW";
var_s = var_s + "pUHmGxmlwdphlwQJWncMQzFwXknCodJcEcXRiHYUIYCwAByhyaB1lAeReDgTgAHwU44GoHB3lUJgFi2BgYCYGYGgkFx2C2ax+lARI9FKA5YHiMR2guHBHlUPIChuBRJk";
var_s = var_s + "4XIjiUKg8GsY5ohkZoQh2dJ6AYZxfFkHZoF2E5gkQOBPgMIJJHwS5WJmMRvhINwRHKAAdCieZyHEHgxEAaQYkcQZUHIGRUnQJIuAGEAxAgTYclGFBRAMCgQhgTZnEIIQ";
var_s = var_s + "0AweIdCYZYGgaIZbDaTJbiKaJKDaDojmkChGhKI5bDoHoWD+aIqDiPImmmSh2h6J5qAqBoi3yeghjCIwpnIeoqiqapKjaLormsCouh+IwrBqVo2i2a4KlqHItY0Fo+i+";
var_s = var_s + "bALAaF4riuOmPjCLILCaSYxCmOpwh6MotAsRoWjMC5LDqUo1m0GxSlaNgtktlgxiuWx2mKL4tnMbpHjiboKB6ZY5m6G42muOBuluJpvjObwbkqLYxG4a5CnWOIvDubpo";
var_s = var_s + "iyKZrG6fo3HACxWg6OwwDsYoriUGwMCMCY0iqOgnBKQ4wnsQwUFgcR8FaSJGE+fBzBqMAxkqZwikichLlKFxAEAgIA==";
exschedule1.VisualDesign(var_s);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 10:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
exschedule1.DefaultEventPadding(-1/*exPaddingAll*/,2);
}
|
92
|
I've noticed that the background of the event while editing is transparent. Is it possible to change it

public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
str var_s;
;
super();
exschedule1.AllowEditEvent(1/*exLeftClick*/);
exschedule1.AllowSelectEvent(0/*exDisallow*/);
exschedule1.DefaultEventLongLabel("");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
var_s = "gBFLBWIgBAEHhEJAEGg41hhjNcHhgAE0KhcTiYREEHDMMgRCJ0Ti0ShEGhiAADACAxRDAMgBQKAAzQFAYbhsGCGAAGEZBQgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlST";
var_s = var_s + "JcQjKKEUQTFiXIyAKL5CgkBYJBrNM5SFIAEQSKA0TDOQ5To5jEBzIxIIjaJhoNoJChNU4TIDELphECdYqUCq6cp2XgAJhYNhWHYgAIjM60LRtIAELq2bpvXAACCXHala";
var_s = var_s + "zsAA+bxvK67cAAd5/YBgOBAAaGC4NQ7EAANHC8Mw3DgAGLkORZHigACzS7MMxzIACQx3HqfaAABK6HomS5NUTTNR0TLNAy3HqWZpsOYZBima4lRTHNxxTBMIz3Bp+YI4";
var_s = var_s + "DgC5FnOCx6jkXY5DcSxlkOGxujMWo6DaCwFhOKzgFeOw1lAAoXjuXpvngAAQBAgI";
exschedule1.VisualDesign(var_s);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
exschedule1.Background(83/*exScheduleEditEventBackColor*/,WinApi::RGB2int(255,0,0));
}
|
91
|
How can I edit the Event.LongLabel property of the Event rather than ExtraLabel

public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
;
super();
exschedule1.AllowEditEvent(1/*exLeftClick*/);
exschedule1.AllowSelectEvent(0/*exDisallow*/);
exschedule1.DefaultEventLongLabel("");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213)))); com_Event = var_Event;
com_Event.Editable(3/*exEditLongLabel*/);
}
|
90
|
Is it possible to edit the event at a single click rather than double click

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.AllowEditEvent(1/*exLeftClick*/);
exschedule1.AllowSelectEvent(0/*exDisallow*/);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213)));
}
|
89
|
How can I prevent editing the events
public void init()
{
;
super();
exschedule1.AllowEditEvent(0/*exDisallow*/);
}
|
88
|
How can I prevent selecting the events
public void init()
{
;
super();
exschedule1.AllowSelectEvent(0/*exDisallow*/);
}
|
87
|
The event gets blue when selected. It is possible to draw a frame instead

public void init()
{
;
super();
exschedule1.SelectEventStyle(816/*exLinesThicker | exLinesSolid*/);
}
|
86
|
Is there an event that fires when the user selects a different day/week/month
// LayoutEndChanging event - Notifies your application once the control's layout has been changed.
void onEvent_LayoutEndChanging(int _Operation)
{
;
print( _Operation );
print( "should be on exCalendarSelectionChange(1)" );
}
// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void onEvent_LayoutStartChanging(int _Operation)
{
;
print( _Operation );
print( "should be on exCalendarSelectionChange(1)" );
}
public void init()
{
;
super();
}
|
85
|
Can I use and display just the Caption of the Event

public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
;
super();
exschedule1.DefaultEventLongLabel("<%=%5%>");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)))); com_Event = var_Event;
com_Event.Caption("caption 1");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)))); com_Event = var_Event;
com_Event.Caption("caption 2");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213)))); com_Event = var_Event;
com_Event.Caption("caption 3");
}
|
84
|
How can I use the Caption property of the Event

public void init()
{
COM com_Event,com_Event1,com_Events;
anytype var_Event,var_Event1,var_Events;
;
super();
exschedule1.DefaultEventLongLabel("<%=%256%><br><b><%=%5%>");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)))); com_Event = var_Event;
com_Event.Caption("caption 1");
var_Event = com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213))); com_Event = var_Event;
com_Event.LongLabel("");
com_Event.ExtraLabel("<%=%5%>");
com_Event.Caption("caption 2");
var_Event1 = com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213))); com_Event1 = var_Event1;
com_Event1.LongLabel("<%=%256%><br><b><%=%5%><br><fgcolor=808080>another text");
com_Event1.Caption("caption 3");
}
|
83
|
Is it possible to display a view of appointments with more than one person

public void init()
{
COM com_Event,com_Events,com_Group,com_Group1,com_Group2,com_Groups;
anytype var_Event,var_Events,var_Group,var_Group1,var_Group2,var_Groups;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("6/20/2012",213)));
exschedule1.DisplayGroupingButton(true);
exschedule1.ShowGroupingEvents(true);
var_Groups = exschedule1.Groups(); com_Groups = var_Groups;
var_Group = com_Groups.Add(1,"Mihai"); com_Group = var_Group;
com_Group.EventBackColor(WinApi::RGB2int(255,0,0));
com_Group.HeaderForeColor(com_Group.EventBackColor());
com_Group.Visible(true);
com_Group.Title(com_Group.Caption());
var_Group1 = com_Groups.Add(2,"Dave"); com_Group1 = var_Group1;
com_Group1.EventBackColor(WinApi::RGB2int(0,255,0));
com_Group1.HeaderForeColor(com_Group1.EventBackColor());
com_Group1.Visible(true);
com_Group1.Title(com_Group1.Caption());
var_Group2 = com_Groups.Add(3,"Enrike"); com_Group2 = var_Group2;
com_Group2.EventBackColor(WinApi::RGB2int(128,128,255));
com_Group2.HeaderForeColor(com_Group2.EventBackColor());
com_Group2.Visible(true);
com_Group2.Title(com_Group2.Caption());
exschedule1.DefaultEventLongLabel("<%=%256%><br><%=%263%>");
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(1);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 11:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(2);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 13:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/20/2012 15:00:00",213)))); com_Event = var_Event;
com_Event.GroupID(3);
exschedule1.EndUpdate();
}
|
82
|
How can I prevent selecting more dates in the schedule view
public void init()
{
;
super();
exschedule1.ScrollBars(0/*exNoScroll*/);
exschedule1.AllowMoveSchedule(0/*exDisallow*/);
exschedule1.Calendar().SingleSel(true);
}
|
81
|
How can I get ride of the control's scroll bars

public void init()
{
;
super();
exschedule1.ScrollBars(0/*exNoScroll*/);
exschedule1.AllowMoveSchedule(0/*exDisallow*/);
}
|
80
|
I am hiding the Calendar section of the control, the question is how can I select another date in the scheduler

public void init()
{
;
super();
exschedule1.OnResizeControl(768/*exChangePanels | exHideSplitter*/);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("1/1/2001",213)));
}
|
79
|
How can I add an event to indicate the Easter Sunday

public void init()
{
COM com_Calendar,com_Event,com_Events,com_Highlight;
anytype var_Calendar,var_Event,var_Events,var_Highlight;
str var_s;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection("month(value) in (3,4)");
var_Highlight = COM::createFromObject(com_Calendar.HighlightEvent()); com_Highlight = var_Highlight;
com_Highlight.BackColor(WinApi::RGB2int(128,128,128));
com_Calendar.ShowYearScroll(true);
exschedule1.Background(68/*exCalendarSelBackColorUnFocus*/,exschedule1.Background(19/*exCalendarSelBackColor*/));
exschedule1.Background(37/*exScheduleBorderSelColorUnFocus*/,exschedule1.Background(19/*exCalendarSelBackColor*/));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 14:00:00",213))); com_Event = var_Event;
com_Event.AllDayEvent(true);
var_s = "not(month(value) in (3,4,5)) ? 0 : ( floor(value)=(2:=floor(date(dateS('3/1/' + year(value)) + ((1:=(((255 - 11 * (year(value) m";
var_s = var_s + "od 19)) - 21) mod 30) + 21) + (=:1 > 48 ? -1 : 0) + 6 - ((year(value) + int(year(value) / 4)) + =:1 + (=:1 > 48 ? -1 : 0) + 1) m";
var_s = var_s + "od 7)))))";
com_Event.Repetitive(var_s);
com_Event.LongLabel("EASTER of <%=year(%1)%> falls in<br><%=%1%>");
com_Event.ShortLabel(com_Event.LongLabel());
}
|
78
|
I need a repetitive event happens every n-days, and stops after m-times. Can your control handle this

public void init()
{
COM com_Calendar,com_Event,com_Events,com_Highlight;
anytype var_Calendar,var_Event,var_Events,var_Highlight;
;
super();
exschedule1.SelectEventStyle(304/*exLinesThick | exLinesSolid*/);
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection(COMVariant::createFromDate(str2Date("1/1/2012",213)));
com_Calendar.Selection("month(value) = 6");
var_Highlight = COM::createFromObject(com_Calendar.HighlightEvent()); com_Highlight = var_Highlight;
com_Highlight.FontSize(10);
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 14:00:00",213))); com_Event = var_Event;
com_Event.Repetitive("(value >= (0:=#6/1/2012#)) and ( (value - =:0) mod (1:=5) = 0) and (value-=:0) < (3*=:1)");
com_Event.Selected(true);
}
|
77
|
How can I add a repetitive event to occur every n days

public void init()
{
COM com_Calendar,com_Event,com_Events,com_Highlight;
anytype var_Calendar,var_Event,var_Events,var_Highlight;
;
super();
exschedule1.SelectEventStyle(304/*exLinesThick | exLinesSolid*/);
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection("month(value) = 6");
var_Highlight = COM::createFromObject(com_Calendar.HighlightEvent()); com_Highlight = var_Highlight;
com_Highlight.FontSize(10);
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 14:00:00",213))); com_Event = var_Event;
com_Event.Repetitive("value >= #6/1/2012# and ( (value - #6/1/2012#) mod 5 = 0)");
com_Event.Selected(true);
}
|
76
|
I am using the AutoHide option, just wondering if there is any event that notifies once the calendar panel shows or hides
// LayoutEndChanging event - Notifies your application once the control's layout has been changed.
void onEvent_LayoutEndChanging(int _Operation)
{
;
print( "End exLayoutCalendarAutoHide(7)" );
print( _Operation );
}
// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void onEvent_LayoutStartChanging(int _Operation)
{
;
print( "Start exLayoutCalendarAutoHide(7)" );
print( _Operation );
}
public void init()
{
;
super();
exschedule1.OnResizeControl(2048/*exCalendarAutoHide*/);
}
|
75
|
Is it possible to display the same event on multiple days

public void init()
{
COM com_Calendar,com_Event,com_Events,com_Highlight;
anytype var_Calendar,var_Event,var_Events,var_Highlight;
;
super();
exschedule1.SelectEventStyle(304/*exLinesThick | exLinesSolid*/);
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection(COMVariant::createFromDate(str2Date("1/1/2012",213)));
com_Calendar.Selection("month(value) = 6");
var_Highlight = COM::createFromObject(com_Calendar.HighlightEvent()); com_Highlight = var_Highlight;
com_Highlight.FontSize(10);
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 14:00:00",213))); com_Event = var_Event;
com_Event.Repetitive("value in (#6/8/2012#,#6/11/2012#,#6/20/2012#)");
com_Event.Selected(true);
}
|
74
|
How can I change the selection background color so it is the same if the control loses the focus

public void init()
{
COM com_Calendar,com_Highlight;
anytype var_Calendar,var_Highlight;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.Selection(COMVariant::createFromDate(str2Date("6/12/2012",213)));
var_Highlight = COM::createFromObject(com_Calendar.HighlightEvent()); com_Highlight = var_Highlight;
com_Highlight.FontSize(10);
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
exschedule1.Events().Add(COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 14:00:00",213)));
exschedule1.Background(68/*exCalendarSelBackColorUnFocus*/,exschedule1.Background(19/*exCalendarSelBackColor*/));
}
|
73
|
How can I add a repetitive event so it occurs every Monday

public void init()
{
COM com_Calendar,com_Event,com_Events,com_Highlight;
anytype var_Calendar,var_Event,var_Events,var_Highlight;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection("month(value) = 6");
var_Highlight = com_Calendar.HighlightEvent(); com_Highlight = var_Highlight;
com_Highlight.FontSize(10);
com_Highlight.BackColor(WinApi::RGB2int(128,128,128));
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("6/12/2012 14:00:00",213)))); com_Event = var_Event;
com_Event.Repetitive("weekday(value) = 1");
}
|
72
|
How can I select the current month

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection("month(value) = month(date(``))");
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
}
|
71
|
How can I select the next two days

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection("(value - int(date(``))) in (1,2,0)");
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
}
|
70
|
How can I select the last two days

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection("(int(date(``)) - value) in (1,2,0)");
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
}
|
69
|
How can I select the current week
public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
com_Calendar.Selection("(int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday(date(``))-1)/7))");
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
}
|
68
|
Is it possible to highlight or change the background or foreground color for the today date in the schedule panel

public void init()
{
COM com_Calendar;
anytype var_Calendar;
str var_s;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(0/*exSunday*/);
var_s = "month(value) = month(date(``)) and (int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday(";
var_s = var_s + "date(``))-1)/7))";
com_Calendar.Selection(COMVariant::createFromStr(var_s));
exschedule1.BorderSelStyle(-1/*exNoLines*/);
exschedule1.Background(81/*exScheduleMarkTodayBackColor*/,WinApi::RGB2int(240,240,240));
}
|
67
|
How can I display no working/non-working days in the control

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.NonworkingDays(0);
com_Calendar.ShowNonMonthDays(false);
com_Calendar.FirstWeekDay(1/*exMonday*/);
exschedule1.BorderSelStyle(-1/*exNoLines*/);
}
|
66
|
The schedule displays a blue border around the selected dates. How can I get ride of that

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.ShowNonMonthDays(false);
com_Calendar.Selection(COMVariant::createFromDate(str2Date("6/18/2012",213)));
exschedule1.BorderSelStyle(-1/*exNoLines*/);
}
|
65
|
The calendar panel shows days that belongs to another month. How can I display just the days within the current month

public void init()
{
;
super();
exschedule1.Calendar().ShowNonMonthDays(false);
}
|
64
|
Is it possible to show the non-working days with a solid color instead

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection(COMVariant::createFromDate(str2Date("6/14/2012",213)));
com_Calendar.Selection("value in (#6/14/2012#,#6/15/2012#,#6/16/2012#,#6/17/2012#)");
com_Calendar.FirstWeekDay(1/*exMonday*/);
com_Calendar.NonworkingDaysPattern(1/*exPatternSolid*/);
com_Calendar.NonworkingDaysColor(WinApi::RGB2int(224,224,224));
}
|
63
|
How can I display the now-working days in the schedule panel too

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection(COMVariant::createFromDate(str2Date("6/14/2012",213)));
com_Calendar.Selection("value in (#6/14/2012#,#6/15/2012#,#6/16/2012#,#6/17/2012#)");
com_Calendar.FirstWeekDay(1/*exMonday*/);
exschedule1.NonworkingTimes().Add(1,"00:00","00:00",-1);
}
|
62
|
How can I make the control read-only

public void init()
{
;
super();
exschedule1.AllowCreateEvent(0/*exDisallow*/);
exschedule1.AllowMoveEvent(0/*exDisallow*/);
exschedule1.AllowResizeEvent(0/*exDisallow*/);
exschedule1.AllowMoveSchedule(1/*exLeftClick*/);
exschedule1.AllowSelectEvent(0/*exDisallow*/);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.Calendar().Selection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
exschedule1.Events().Add(COMVariant::createFromUtcDateTime(str2Datetime("5/25/2012 9:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/25/2012 13:00:00",213)));
}
|
61
|
How can I check/uncheck a group, so it is visible after I add it

public void init()
{
COM com_Group;
anytype var_Group;
;
super();
exschedule1.DisplayGroupingButton(true);
exschedule1.ShowGroupingEvents(true);
var_Group = COM::createFromObject(exschedule1.Groups()).Add(1,"Pro"); com_Group = var_Group;
com_Group.Visible(true);
}
|
60
|
The drop down button to show groups is not visible, even I set the DisplayGroupingButton. What Can I do

public void init()
{
;
super();
exschedule1.DisplayGroupingButton(true);
exschedule1.ShowGroupingEvents(true);
}
|
59
|
It is possible to translate "All" to "Todos" or to something else

public void init()
{
;
super();
exschedule1.Description(0/*exGroupBarAll*/,"(todos)");
exschedule1.DisplayGroupingButton(true);
exschedule1.ShowGroupingEvents(true);
exschedule1.Groups().Add(1,"Pro");
}
|
58
|
How can I remove the control's scroll bars

public void init()
{
;
super();
exschedule1.ScrollBars(0/*exNoScroll*/);
}
|
57
|
How can I select a month

public void init()
{
;
super();
exschedule1.Calendar().Selection("month(value) = month(date(``))");
}
|
56
|
How can I display two or more dates in the scheduler (Method 2)

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
com_Calendar.Selection("value in ( #5/24/2012#, #5/25/2012# )");
}
|
55
|
How can I display two or more dates in the scheduler (Method 1)

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection("0");
com_Calendar.SelectDate(str2Date("5/24/2012",213),true);
com_Calendar.SelectDate(str2Date("5/25/2012",213),true);
}
|
54
|
How can I define a different color for nonworking part for different days

public void init()
{
COM com_Calendar,com_NonworkingPattern,com_NonworkingPatterns,com_NonworkingTimes,com_Pattern;
anytype var_Calendar,var_NonworkingPattern,var_NonworkingPatterns,var_NonworkingTimes,var_Pattern;
;
super();
exschedule1.BeginUpdate();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection(COMVariant::createFromDate(str2Date("5/21/2012",213)));
com_Calendar.Selection("(value >= #05/21/2012#) and (value <= #05/25/2012#)");
com_Calendar.FirstWeekDay(1/*exMonday*/);
var_NonworkingPatterns = exschedule1.NonworkingPatterns(); com_NonworkingPatterns = var_NonworkingPatterns;
var_NonworkingPattern = COM::createFromObject(com_NonworkingPatterns.Add(1234,6/*exPatternBDiagonal*/)); com_NonworkingPattern = var_NonworkingPattern;
var_Pattern = COM::createFromObject(com_NonworkingPattern).Pattern(); com_Pattern = var_Pattern;
com_Pattern.Color(WinApi::RGB2int(255,0,0));
var_NonworkingPattern = COM::createFromObject(com_NonworkingPatterns.Add(1235,6/*exPatternBDiagonal*/)); com_NonworkingPattern = var_NonworkingPattern;
var_Pattern = COM::createFromObject(com_NonworkingPattern).Pattern(); com_Pattern = var_Pattern;
com_Pattern.Color(WinApi::RGB2int(0,255,0));
var_NonworkingPattern = COM::createFromObject(com_NonworkingPatterns.Add(1236,6/*exPatternBDiagonal*/)); com_NonworkingPattern = var_NonworkingPattern;
var_Pattern = COM::createFromObject(com_NonworkingPattern).Pattern(); com_Pattern = var_Pattern;
com_Pattern.Color(WinApi::RGB2int(0,0,255));
var_NonworkingPattern = com_NonworkingPatterns.Add(1237,778/*exPatternFrameThick | exPatternCross*/); com_NonworkingPattern = var_NonworkingPattern;
var_Pattern = COM::createFromObject(com_NonworkingPattern.Pattern()); com_Pattern = var_Pattern;
com_Pattern.Color(WinApi::RGB2int(128,128,128));
var_Pattern = COM::createFromObject(com_NonworkingPattern.Pattern()); com_Pattern = var_Pattern;
com_Pattern.FrameColor(WinApi::RGB2int(64,64,64));
com_NonworkingPattern.BackColor(WinApi::RGB2int(255,255,0));
var_NonworkingTimes = exschedule1.NonworkingTimes(); com_NonworkingTimes = var_NonworkingTimes;
com_NonworkingTimes.Add("weekday(value) in (0,1)","10:00","11:45",1234);
com_NonworkingTimes.Add("weekday(value) = 2","00:00","08:45",1235);
com_NonworkingTimes.Add("weekday(value) = 2","15:00","24:00",1235);
com_NonworkingTimes.Add("weekday(value) in (3,5)","12:15","13:00",1236);
com_NonworkingTimes.Add("weekday(value) = 4","13:30","15:00",1237);
exschedule1.ShowNonworkingTime(3/*exShowNonworkingTimeSemi*/);
exschedule1.EndUpdate();
}
|
53
|
Is it possible to show both nonworking and the events, using semi-transparent color

public void init()
{
COM com_Calendar,com_NonworkingPattern,com_NonworkingPattern1,com_NonworkingPatterns,com_NonworkingTimes;
anytype var_Calendar,var_NonworkingPattern,var_NonworkingPattern1,var_NonworkingPatterns,var_NonworkingTimes;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
com_Calendar.Selection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
var_NonworkingPatterns = exschedule1.NonworkingPatterns(); com_NonworkingPatterns = var_NonworkingPatterns;
com_NonworkingPatterns.Add(1234,11/*exPatternBrick*/);
var_NonworkingPattern = com_NonworkingPatterns.Add(9871,780/*exPatternFrameThick | exPatternYard*/); com_NonworkingPattern = var_NonworkingPattern;
com_NonworkingPattern.BackColor(WinApi::RGB2int(255,0,0));
var_NonworkingPattern1 = com_NonworkingPatterns.Add(9872,780/*exPatternFrameThick | exPatternYard*/); com_NonworkingPattern1 = var_NonworkingPattern1;
com_NonworkingPattern1.BackColor(WinApi::RGB2int(255,255,0));
var_NonworkingTimes = exschedule1.NonworkingTimes(); com_NonworkingTimes = var_NonworkingTimes;
com_NonworkingTimes.Add("1","00:00","08:45",1234);
com_NonworkingTimes.Add("weekday(value) = 5","10:00","11:45",9871);
com_NonworkingTimes.Add("weekday(value) = 4","12:00","12:35",9872);
exschedule1.Events().Add(COMVariant::createFromUtcDateTime(str2Datetime("5/25/2012 9:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/25/2012 13:00:00",213)));
exschedule1.ShowNonworkingTime(3/*exShowNonworkingTimeSemi*/);
}
|
52
|
Is it possible to show the nonworking part behind, on the back

public void init()
{
COM com_Calendar,com_NonworkingPattern,com_NonworkingPattern1,com_NonworkingPatterns,com_NonworkingTimes;
anytype var_Calendar,var_NonworkingPattern,var_NonworkingPattern1,var_NonworkingPatterns,var_NonworkingTimes;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
com_Calendar.Selection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
var_NonworkingPatterns = exschedule1.NonworkingPatterns(); com_NonworkingPatterns = var_NonworkingPatterns;
com_NonworkingPatterns.Add(1234,11/*exPatternBrick*/);
var_NonworkingPattern = com_NonworkingPatterns.Add(9871,780/*exPatternFrameThick | exPatternYard*/); com_NonworkingPattern = var_NonworkingPattern;
com_NonworkingPattern.BackColor(WinApi::RGB2int(255,0,0));
var_NonworkingPattern1 = com_NonworkingPatterns.Add(9872,780/*exPatternFrameThick | exPatternYard*/); com_NonworkingPattern1 = var_NonworkingPattern1;
com_NonworkingPattern1.BackColor(WinApi::RGB2int(255,255,0));
var_NonworkingTimes = exschedule1.NonworkingTimes(); com_NonworkingTimes = var_NonworkingTimes;
com_NonworkingTimes.Add("1","00:00","08:45",1234);
com_NonworkingTimes.Add("weekday(value) = 5","10:00","11:45",9871);
com_NonworkingTimes.Add("weekday(value) = 4","12:00","12:35",9872);
exschedule1.Events().Add(COMVariant::createFromUtcDateTime(str2Datetime("5/25/2012 9:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/25/2012 13:00:00",213)));
exschedule1.ShowNonworkingTime(1/*exShowNonworkingTimeBack*/);
}
|
51
|
Can you explain how the non working day patterns work and how to define
for different days of the week

public void init()
{
COM com_Calendar,com_NonworkingPattern,com_NonworkingPattern1,com_NonworkingPatterns,com_NonworkingTimes;
anytype var_Calendar,var_NonworkingPattern,var_NonworkingPattern1,var_NonworkingPatterns,var_NonworkingTimes;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
com_Calendar.Selection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
var_NonworkingPatterns = exschedule1.NonworkingPatterns(); com_NonworkingPatterns = var_NonworkingPatterns;
com_NonworkingPatterns.Add(1234,11/*exPatternBrick*/);
var_NonworkingPattern = com_NonworkingPatterns.Add(9871,780/*exPatternFrameThick | exPatternYard*/); com_NonworkingPattern = var_NonworkingPattern;
com_NonworkingPattern.BackColor(WinApi::RGB2int(255,0,0));
var_NonworkingPattern1 = com_NonworkingPatterns.Add(9872,780/*exPatternFrameThick | exPatternYard*/); com_NonworkingPattern1 = var_NonworkingPattern1;
com_NonworkingPattern1.BackColor(WinApi::RGB2int(255,255,0));
var_NonworkingTimes = exschedule1.NonworkingTimes(); com_NonworkingTimes = var_NonworkingTimes;
com_NonworkingTimes.Add("1","00:00","08:45",1234);
com_NonworkingTimes.Add("weekday(value) = 5","10:00","11:45",9871);
com_NonworkingTimes.Add("weekday(value) = 4","12:00","12:35",9872);
}
|
50
|
How can I add a nonworking time

public void init()
{
COM com_NonworkingTimes;
anytype var_NonworkingTimes;
;
super();
var_NonworkingTimes = exschedule1.NonworkingTimes(); com_NonworkingTimes = var_NonworkingTimes;
com_NonworkingTimes.Add("1","00:00","08:45",-1);
com_NonworkingTimes.Add("weekday(value) = weekday(date(``))","10:00","11:15",-1);
}
|
49
|
How can I get the event from the cursor

// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int _Button,int _Shift,int _X,int _Y)
{
;
print( "Calendar.DateFromPoint" );
print( exschedule1.Calendar().DateFromPoint(-1,-1) );
print( "AnchorFromPoint" );
print( exschedule1.AnchorFromPoint(-1,-1) );
print( "DateTimeFromPoint" );
print( exschedule1.DateTimeFromPoint(-1,-1) );
print( "TimeFromPoint" );
print( exschedule1.TimeFromPoint(-1,-1) );
print( "TimeScaleFromPoint" );
print( exschedule1.TimeScaleFromPoint(-1,-1) );
print( "GroupFromPoint" );
print( exschedule1.GroupFromPoint(-1,-1) );
print( "GroupHeaderFromPoint" );
print( exschedule1.GroupHeaderFromPoint(-1,-1) );
print( "MarkZoneFromPoint" );
print( exschedule1.MarkZoneFromPoint(-1,-1) );
print( "NonworkingTimeFromPoint" );
print( exschedule1.NonworkingTimeFromPoint(-1,-1) );
print( "MarkTimeFromPoint" );
print( exschedule1.MarkTimeFromPoint(-1,-1) );
print( "EventFromPoint" );
print( exschedule1.EventFromPoint(-1,-1) );
print( "PictureFromPoint" );
print( exschedule1.PictureFromPoint(-1,-1) );
}
public void init()
{
COM com_Events,com_MarkTime;
anytype var_Events,var_MarkTime;
;
super();
exschedule1.BeginUpdate();
exschedule1.AllowMultiDaysEvent(false);
exschedule1.AllowCreateEvent(17/*exCTRLKey | exLeftClick*/);
exschedule1.AllowMoveEvent(17/*exCTRLKey | exLeftClick*/);
exschedule1.AllowMoveTimeScale(1/*exLeftClick*/);
exschedule1.AllowMoveSchedule(1/*exLeftClick*/);
exschedule1.AllowSelectEvent(17/*exCTRLKey | exLeftClick*/);
exschedule1.AllowResizeEvent(1/*exLeftClick*/);
exschedule1.Calendar().MaxMonthY(6);
exschedule1.SelectEventStyle(816/*exLinesThicker | exLinesSolid*/);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.TimeScaleLabel("");
com_MarkTime.Label("<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
com_MarkTime.LabelAlign(34/*exBottomRight*/);
com_MarkTime.Line(780/*exLinesThicker | exLinesDash*/);
com_MarkTime.BodyEventBackColor(WinApi::RGB2int(128,0,0));
com_MarkTime.BodyEventForeColor(WinApi::RGB2int(255,255,255));
com_MarkTime.Movable(true);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
48
|
How can I show the timer only in the chart section

public void init()
{
COM com_MarkTime;
anytype var_MarkTime;
;
super();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.Label(" <font ;12>timer</font> ");
com_MarkTime.LabelAlign(34/*exBottomRight*/);
com_MarkTime.TimeScaleLabel("");
com_MarkTime.TimeScaleLine(-1/*exNoLines*/);
}
|
47
|
How can I let the user to move the timer from the cursor

public void init()
{
COM com_Events,com_MarkTime;
anytype var_Events,var_MarkTime;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.TimeScaleLabel("");
com_MarkTime.Label("<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
com_MarkTime.LabelAlign(34/*exBottomRight*/);
com_MarkTime.Line(780/*exLinesThicker | exLinesDash*/);
com_MarkTime.BodyEventBackColor(WinApi::RGB2int(128,0,0));
com_MarkTime.BodyEventForeColor(WinApi::RGB2int(255,255,255));
com_MarkTime.Movable(true);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
46
|
How can I show the timer only in the time scale

public void init()
{
COM com_MarkTime;
anytype var_MarkTime;
;
super();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.TimeScaleLabel(" <font ;12>timer</font> ");
com_MarkTime.Line(-1/*exNoLines*/);
}
|
45
|
I have seen some screen shots and noticed, that you can place images on a timer. How can I do that

public void init()
{
COM com_Events,com_MarkTime,com_Pattern;
anytype var_Events,var_MarkTime,var_Pattern;
str var_s;
;
super();
exschedule1.BeginUpdate();
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
exschedule1.Images(COMVariant::createFromStr(var_s));
exschedule1.HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.StatusEventSize(8);
exschedule1.StatusEventColor(WinApi::RGB2int(255,255,255));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.Label("<img>pic1</img>");
com_MarkTime.TimeScaleLabel("<fgcolor=FF0000><b><%hh%>:<%nn%> <%AM/PM%><br><c><img>1</img>");
com_MarkTime.LabelAlign(18/*exMiddleRight*/);
com_MarkTime.Line(780/*exLinesThicker | exLinesDash*/);
com_MarkTime.Movable(true);
var_Pattern = COM::createFromObject(com_MarkTime.StatusEventPattern()); com_Pattern = var_Pattern;
com_Pattern.Type(3/*exPatternShadow*/);
var_Pattern = COM::createFromObject(com_MarkTime.StatusEventPattern()); com_Pattern = var_Pattern;
com_Pattern.Color(WinApi::RGB2int(255,0,0));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
44
|
How can I change the timer's color

public void init()
{
COM com_MarkTime,com_MarkTimes;
anytype var_MarkTime,var_MarkTimes;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTimes = exschedule1.MarkTimes(); com_MarkTimes = var_MarkTimes;
var_MarkTime = com_MarkTimes.Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.Movable(true);
com_MarkTime.LineColor(WinApi::RGB2int(0,0,255));
com_MarkTime.StatusEventBackColor(WinApi::RGB2int(0,0,255));
com_MarkTime.TimeScaleLineColor(WinApi::RGB2int(0,0,255));
com_MarkTime.TimeScaleLabel("<fgcolor=0000FF><b><%hh%>:<%nn%> <%AM/PM%>");
exschedule1.EndUpdate();
}
|
43
|
Can I add multiple timers with different colors

public void init()
{
COM com_Events,com_MarkTime,com_MarkTime1,com_MarkTimes;
anytype var_Events,var_MarkTime,var_MarkTime1,var_MarkTimes;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTimes = exschedule1.MarkTimes(); com_MarkTimes = var_MarkTimes;
var_MarkTime = com_MarkTimes.Add("timer1",str2Datetime("5/24/2012 9:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.Movable(true);
com_MarkTime.StatusEventBackColor(WinApi::RGB2int(255,0,0));
var_MarkTime1 = com_MarkTimes.Add("timer2",str2Datetime("5/24/2012 13:35:00",213)); com_MarkTime1 = var_MarkTime1;
com_MarkTime1.Movable(true);
com_MarkTime1.LineColor(WinApi::RGB2int(0,255,0));
com_MarkTime1.StatusEventBackColor(com_MarkTime1.LineColor());
com_MarkTime1.TimeScaleLineColor(com_MarkTime1.LineColor());
com_MarkTime1.TimeScaleLabel("<fgcolor=00FF00><b><%hh%>:<%nn%> <%AM/PM%>");
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
42
|
How can I specify a different color for the status of the event that intersects with the timer

public void init()
{
COM com_Events,com_MarkTime;
anytype var_Events,var_MarkTime;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.TimeScaleLabelAlign(1/*exTopCenter*/);
com_MarkTime.Line(257/*exLinesThick | exLinesHDot4*/);
com_MarkTime.TimeScaleLine(1/*exLinesHDot4*/);
com_MarkTime.StatusEventBackColor(WinApi::RGB2int(255,0,0));
com_MarkTime.Movable(true);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
41
|
How can the chart displays the events from the timer with a different color

public void init()
{
COM com_Events,com_MarkTime;
anytype var_Events,var_MarkTime;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.TimeScaleLabel("");
com_MarkTime.Label("<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
com_MarkTime.LabelAlign(34/*exBottomRight*/);
com_MarkTime.Line(780/*exLinesThicker | exLinesDash*/);
com_MarkTime.BodyEventBackColor(WinApi::RGB2int(128,0,0));
com_MarkTime.BodyEventForeColor(WinApi::RGB2int(255,255,255));
com_MarkTime.Movable(true);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
40
|
Is it possible to display the timer's label on the chart, instead time scales

public void init()
{
COM com_Events,com_MarkTime;
anytype var_Events,var_MarkTime;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_MarkTime = COM::createFromObject(exschedule1.MarkTimes()).Add("timer",str2Datetime("5/24/2012 11:35:00",213)); com_MarkTime = var_MarkTime;
com_MarkTime.TimeScaleLabel("");
com_MarkTime.Label("<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
com_MarkTime.LabelAlign(34/*exBottomRight*/);
com_MarkTime.Line(780/*exLinesThicker | exLinesDash*/);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
39
|
How can I add a timer to the scheduler

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.MarkTimes().Add("timer",str2Datetime("5/24/2012 11:35:00",213));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 9:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
38
|
Is it possible to define the small increment to 5 minutes

public void init()
{
COM com_TimeScale;
anytype var_TimeScale;
;
super();
exschedule1.DayEndTime("10:00");
var_TimeScale = COM::createFromObject(exschedule1.TimeScales()).Item(COMVariant::createFromInt(0)); com_TimeScale = var_TimeScale;
com_TimeScale.MinorTimeRuler("00:05");
}
|
37
|
How can I change the time format to 24 hours to be displayed in the control's time scale

public void init()
{
COM com_TimeScale;
anytype var_TimeScale;
;
super();
var_TimeScale = COM::createFromObject(exschedule1.TimeScales()).Item(COMVariant::createFromInt(0)); com_TimeScale = var_TimeScale;
com_TimeScale.MajorTimeLabel("<%hh%>:<%nn%>");
com_TimeScale.Width(32);
}
|
36
|
How can I change the time zone

public void init()
{
COM com_TimeScale;
anytype var_TimeScale;
;
super();
exschedule1.DayEndTime("13:00");
var_TimeScale = COM::createFromObject(exschedule1.TimeScales()).Item(COMVariant::createFromInt(0)); com_TimeScale = var_TimeScale;
com_TimeScale.TimeZone("+03:00");
com_TimeScale.Caption(com_TimeScale.TimeZone());
}
|
35
|
Is it possible to add more time scales

public void init()
{
COM com_TimeScale;
anytype var_TimeScale;
;
super();
exschedule1.DayEndTime("13:00");
var_TimeScale = COM::createFromObject(exschedule1.TimeScales()).Add("+03:00"); com_TimeScale = var_TimeScale;
com_TimeScale.AlignLeft(false);
com_TimeScale.Caption("EST <b>+03");
}
|
34
|
How can I get any event to be notified if a picture or icon is clicked (Method 2)

// PictureClick event - Occurs when the user clicks a picture within an event ( Event.Pictures/ExtraPictures ).
void onEvent_PictureClick(str _Key)
{
;
print( _Key );
}
public void init()
{
COM com_Event,com_Events,com_ExPictures;
anytype var_Event,var_Events,var_ExPictures;
str var_s;
;
super();
exschedule1.BeginUpdate();
exschedule1.ShowSelectEvent(false);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
exschedule1.Images(COMVariant::createFromStr(var_s));
var_ExPictures = exschedule1.Pictures(); com_ExPictures = var_ExPictures;
com_ExPictures.Add("pic1","c:\\exontrol\\images\\card.png");
com_ExPictures.Add("pic2","c:\\exontrol\\images\\diary.png");
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)))); com_Event = var_Event;
com_Event.Pictures("pic1/pic2");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)))); com_Event = var_Event;
com_Event.Pictures("1,2/3");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)))); com_Event = var_Event;
com_Event.ExtraPictures("pic2/1");
exschedule1.EndUpdate();
}
|
33
|
How can I display a tooltip for an anchor element, for instance

// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int _Button,int _Shift,int _X,int _Y)
{
str s;
;
s = exschedule1.AnchorFromPoint(-1,-1);
exschedule1.ShowToolTip(s,"info","","+16");
}
public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
str s;
;
super();
exschedule1.BeginUpdate();
exschedule1.ShowSelectEvent(false);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)))); com_Event = var_Event;
com_Event.ExtraLabel("<a remove>remove</a>");
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
32
|
Is it possible to prevent selecting events
public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.ShowSelectEvent(false);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)))); com_Event = var_Event;
com_Event.Selected(true);
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)));
exschedule1.EndUpdate();
}
|
31
|
How can I get any event to be notified if a picture or icon is clicked (Method 1)

// AnchorClick event - Occurs when an anchor element is clicked.
void onEvent_AnchorClick(str _AnchorID,str _Options)
{
;
print( _AnchorID );
}
public void init()
{
COM com_Event,com_Events,com_ExPictures;
anytype var_Event,var_Events,var_ExPictures;
str var_s;
;
super();
exschedule1.BeginUpdate();
exschedule1.ShowSelectEvent(false);
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
exschedule1.Images(COMVariant::createFromStr(var_s));
var_ExPictures = exschedule1.Pictures(); com_ExPictures = var_ExPictures;
com_ExPictures.Add("pic1","c:\\exontrol\\images\\card.png");
com_ExPictures.Add("pic2","c:\\exontrol\\images\\diary.png");
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)))); com_Event = var_Event;
com_Event.ExtraLabel("<a pic1><img>pic1:32</img></a>");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)))); com_Event = var_Event;
com_Event.ExtraLabel("<a pic2><img>pic2:48</img></a>");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213)))); com_Event = var_Event;
com_Event.LongLabel("Start: <%=%1%><br>End: <%=%2%><br><br>Icon: <a 1><img>1</img></a> - <a 2><img>2</img></a>");
exschedule1.EndUpdate();
}
|
30
|
How can I display a picture or an icon to an event

public void init()
{
COM com_Event,com_Events,com_ExPictures;
anytype var_Event,var_Events,var_ExPictures;
str var_s;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
exschedule1.Images(COMVariant::createFromStr(var_s));
var_ExPictures = exschedule1.Pictures(); com_ExPictures = var_ExPictures;
com_ExPictures.Add("pic1","c:\\exontrol\\images\\card.png");
com_ExPictures.Add("pic2","c:\\exontrol\\images\\diary.png");
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)))); com_Event = var_Event;
com_Event.ExtraLabel("<img>pic1:32</img>");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)))); com_Event = var_Event;
com_Event.ExtraLabel("<img>pic2:48</img>");
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)))); com_Event = var_Event;
com_Event.Pictures("1/2,3/pic1");
var_Event = com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 15:45:00",213))); com_Event = var_Event;
com_Event.ExtraPictures("1/2");
com_Event.Pictures("1,pic1,2,pic2/3");
exschedule1.EndUpdate();
}
|
29
|
Is it possible to display the group's caption or ID on the event's label

public void init()
{
COM com_Event,com_Events,com_Group,com_Group1,com_Groups;
anytype var_Event,var_Events,var_Group,var_Group1,var_Groups;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_Groups = exschedule1.Groups(); com_Groups = var_Groups;
var_Group = com_Groups.Add(1,"Group 1"); com_Group = var_Group;
com_Group.Visible(true);
com_Group.EventBackColor(WinApi::RGB2int(128,128,128));
com_Group.Title("1'st Group");
var_Group1 = com_Groups.Add(2,"Group 2"); com_Group1 = var_Group1;
com_Group1.Visible(true);
com_Group1.EventBackColor(WinApi::RGB2int(255,0,0));
com_Group1.Title("2'nd Group");
exschedule1.DefaultEventLongLabel("<%=%256%><br>Group's Caption: <b><%=%262%></b><br>Group's Title: <b><%=%263%></b>");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)))); com_Event = var_Event;
com_Event.GroupID(1);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(2);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(1);
exschedule1.EndUpdate();
}
|
28
|
How can I show the events from different groups using the same color

public void init()
{
COM com_Event,com_Events,com_Group,com_Group1,com_Groups;
anytype var_Event,var_Events,var_Group,var_Group1,var_Groups;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.DisplayGroupingButton(true);
exschedule1.ShowGroupingEvents(true);
exschedule1.ApplyGroupingColors(false);
var_Groups = exschedule1.Groups(); com_Groups = var_Groups;
var_Group = com_Groups.Add(1,"Group 1"); com_Group = var_Group;
com_Group.Visible(true);
com_Group.EventBackColor(WinApi::RGB2int(128,128,128));
com_Group.Title("1'st Group");
var_Group1 = com_Groups.Add(2,"Group 2"); com_Group1 = var_Group1;
com_Group1.Visible(true);
com_Group1.EventBackColor(WinApi::RGB2int(255,0,0));
com_Group1.Title("2'nd Group");
exschedule1.DefaultEventLongLabel("<%=%256%><br>Group's Caption: <b><%=%262%></b><br>Group's Title: <b><%=%263%></b>");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)))); com_Event = var_Event;
com_Event.GroupID(1);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(2);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 14:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(1);
exschedule1.EndUpdate();
}
|
27
|
Is it possible to hide the grid lines in the calendar panel

public void init()
{
;
super();
exschedule1.Calendar().ShowGridLines(-1/*exNoLines*/);
}
|
26
|
How can I control the number of months displayed on the calendar pane
public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.MaxMonthX(2);
com_Calendar.MaxMonthY(2);
}
|
25
|
I'm currently evaluating your eXSchedule product and i'm trying to have the header display the month according to local settings. How can I do that (Method 2)

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.FirstWeekDay(1/*exMonday*/);
com_Calendar.MonthNames("J-A F-E M-A A-P M-A J-U J-L A-U S-P O-C N-V D-C");
com_Calendar.WeekDays("Du Lu Ma Mi Jo Vi Si");
com_Calendar.TodayCaption("A z i");
}
|
24
|
I'm currently evaluating your eXSchedule product and i'm trying to have the header display the month according to local settings. How can I do that (Method 1)

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.FirstWeekDay(com_Calendar.LocFirstWeekDay());
com_Calendar.MonthNames(com_Calendar.LocMonthNames());
com_Calendar.WeekDays(com_Calendar.LocWeekDays());
com_Calendar.AMPM(com_Calendar.LocAMPM());
}
|
23
|
How can I show the events grouped

public void init()
{
COM com_Event,com_Events,com_Group,com_Group1,com_Groups;
anytype var_Event,var_Events,var_Group,var_Group1,var_Groups;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.DisplayGroupingButton(true);
exschedule1.ShowGroupingEvents(true);
var_Groups = exschedule1.Groups(); com_Groups = var_Groups;
var_Group = com_Groups.Add(1,"Group 1"); com_Group = var_Group;
com_Group.Visible(true);
com_Group.EventBackColor(WinApi::RGB2int(128,128,128));
com_Group.HeaderBackColor(com_Group.EventBackColor());
var_Group1 = com_Groups.Add(2,"Group 2"); com_Group1 = var_Group1;
com_Group1.Visible(true);
com_Group1.EventBackColor(WinApi::RGB2int(255,0,0));
com_Group1.HeaderBackColor(com_Group1.EventBackColor());
var_Events = exschedule1.Events(); com_Events = var_Events;
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)))); com_Event = var_Event;
com_Event.GroupID(1);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(2);
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)))); com_Event = var_Event;
com_Event.GroupID(1);
exschedule1.EndUpdate();
}
|
22
|
How can I show 2 or more days in the scheduler

public void init()
{
COM com_Calendar;
anytype var_Calendar;
;
super();
exschedule1.BeginUpdate();
var_Calendar = exschedule1.Calendar(); com_Calendar = var_Calendar;
com_Calendar.Selection("0");
com_Calendar.SelectDate(str2Date("5/24/2012",213),true);
com_Calendar.SelectDate(str2Date("5/25/2012",213),true);
exschedule1.EndUpdate();
}
|
21
|
Is it possible to change the first week day

public void init()
{
;
super();
exschedule1.Calendar().FirstWeekDay(1/*exMonday*/);
}
|
20
|
How can I define the new starting / ending points of the day

public void init()
{
;
super();
exschedule1.DayStartTime("07:30");
exschedule1.DayEndTime("12:45");
}
|
19
|
Is it possible to change the label to be displayed when user moves the events

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.UpdateEventsLabel("Start: <%=%1%><br>End: <%=%2%>");
exschedule1.UpdateEventsLabelAlign(17/*exMiddleCenter*/);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
18
|
How can I change the default tooltip when adding new events

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.DefaultEventTooltip("Start: <%=%1%><br>End: <%=%2%>");
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
17
|
How can I change the default label when adding new events

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.CreateEventLabel("Start: <%=%1%><br>End: <%=%2%>");
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
16
|
How can I change the default label when adding new events

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.DefaultEventLongLabel("Start: <%=%1%><br>End: <%=%2%>");
exschedule1.DefaultEventShortLabel(exschedule1.DefaultEventLongLabel());
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
15
|
How can I programatically add events to the control

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
14
|
How can I hide the status part of a specific event

public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)))); com_Event = var_Event;
com_Event.ShowStatus(false);
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
13
|
Is it possible to change the status color for a specific event

public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)))); com_Event = var_Event;
com_Event.StatusColor(WinApi::RGB2int(255,0,0));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
12
|
Is it possible to change the background color for a specific event

public void init()
{
COM com_Event,com_Events;
anytype var_Event,var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
var_Event = COM::createFromObject(com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)))); com_Event = var_Event;
com_Event.BodyBackColor(WinApi::RGB2int(255,0,0));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
11
|
Can I change the size of the status to be larger

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.StatusEventSize(8);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
10
|
I do not need a status, can I hide it

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.ShowStatusEvent(false);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
9
|
Is it possible to change the status's default background color

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.StatusEventColor(WinApi::RGB2int(255,0,0));
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
8
|
How can I change the visual appearance of the Events (Method 2)

public void init()
{
COM com_Events;
anytype var_Events;
str var_s;
;
super();
exschedule1.BeginUpdate();
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
var_s = "gBFLBWIgBAEHhEJAEGg55hAvCcHAkIbD/i0JE0KhYnjQDFEaAQDhEMAAIhAPhBYKA6KhyMJjNZiMJyEA2EAxAUIk0HlEHlUsl0wmU0GYgGcig87AE9AE/lsvmMzEAym8";
var_s = var_s + "BA==";
exschedule1.VisualDesign(var_s);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
7
|
How can I change the visual appearance of the Events (Method 1)

public void init()
{
COM com_Events;
anytype var_Events;
;
super();
exschedule1.BeginUpdate();
exschedule1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
exschedule1.Calendar().Selection(COMVariant::createFromDate(str2Date("5/24/2012",213)));
exschedule1.BodyEventBackColor(0x1000000);
var_Events = exschedule1.Events(); com_Events = var_Events;
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:00:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 10:45:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 12:30:00",213)));
com_Events.Add(COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 11:30:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("5/24/2012 13:30:00",213)));
exschedule1.EndUpdate();
}
|
6
|
How can I show the scheduler panel only, so no Calendar panel is shown

public void init()
{
;
super();
exschedule1.OnResizeControl(768/*exChangePanels | exHideSplitter*/);
}
|
5
|
May I display the calendar in the right side of the control

public void init()
{
;
super();
exschedule1.OnResizeControl(1536/*exCalendarFit | exChangePanels*/);
}
|
4
|
Is it possible to disable resizing the vertical splitter

public void init()
{
;
super();
exschedule1.OnResizeControl(129/*exDisableSplitter | exResizePanelRight*/);
}
|
3
|
How can I show the Calendar panel only

public void init()
{
;
super();
exschedule1.OnResizeControl(257/*exHideSplitter | exResizePanelRight*/);
}
|
2
|
Is there an AutoHide option for the Calendar panel

public void init()
{
;
super();
exschedule1.OnResizeControl(2048/*exCalendarAutoHide*/);
}
|
1
|
How can I hide the Calendar panel

public void init()
{
;
super();
exschedule1.OnResizeControl(768/*exChangePanels | exHideSplitter*/);
}
|